<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/10 0010
 * Time: 10:12
 */
//入口文件
// m 模块
// c 控制器
// f 方法

session_start();
include 'mysql/mysql.php';
new mysql();

$m = isset($_GET['m'])?$_GET['m']:'index';
$c = isset($_GET['c'])?$_GET['c']:'index';
$f = isset($_GET['f'])?$_GET['f']:'index';

include "application/".$m."/controller/".$c.".php";
$obj = new $c();
$data = $obj->$f();